# coding=utf-8
# @Time    : 2018/2/2 14:01
# @Author  : Jiangxu
# @File    : 面向对象编程.py
# @Software: PyCharm
class Animal():
	def run(self):
		print 'Animal is running!'

class Dog(Animal):
	def run(self):
		print 'Dog is running!'

class Cat(Animal):
	def run(self):
		print 'Cat is running!'

dog = Dog()
cat = Cat()
animal = Animal()

dog.run()
cat.run()
animal.run()